package com.zbf.设计模式1.代理模式1.动态代理1.CGLIB动态代理;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/8/23  9:35
 * 描述:
 */
public class TestCglibDaili {
    public static void main(String[] args) {

       /* My12MthodInterceptor<TestMyInterface> myInt=new My12MthodInterceptor<>();

        TestMyInterface proxyObject = myInt.getProxyObject(TestMyInterface.class);

        String s = proxyObject.test01("555555");

        System.out.println(s);*/


        TestMhImpl testMh=new TestMhImpl();
        My12MthodInterceptor<TestMhImpl> myInt=new My12MthodInterceptor<>(testMh);
        TestMhImpl proxyObject = myInt.getProxyObject(TestMhImpl.class);
        proxyObject.test02("1235555");


    }
}
